function PrefsAssistant(argFromPusher) {}

PrefsAssistant.prototype = {
	setup: function() {
		Ares.setupSceneAssistant(this);

		//usernameCookie = new Mojo.Model.Cookie("username_cookie");
		var usernameString = usernameCookie.get();
		//passwordCookie = new Mojo.Model.Cookie("password_cookie");
		var passwordString = passwordCookie.get();

		if (usernameString) {
			this.$.usernameTextField.setValue(usernameString);
		}

		if (passwordString) {
			this.$.passwordPasswordField.setValue(passwordString);
		}
	},
	cleanup: function() {
		var usernameString = this.$.usernameTextField.getValue();
		var passwordString = this.$.passwordPasswordField.getValue();

		usernameCookie.put(usernameString);
		passwordCookie.put(passwordString);
		Ares.cleanupSceneAssistant(this);
	}
};